<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Area
 *
 * @ORM\Table(name="city_directory", options={"comment":"城市目录"})
 * @ORM\Entity()
 */
class CityDirectory
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Area
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Area", inversedBy="id")
     * @ORM\JoinColumn(name="city_id", referencedColumnName="id")
     */
    private $city;


    /**
     * @var int
     *
     * @ORM\Column(name="sort_order", type="integer", nullable=true, options={"comment"="排序的序号", "default"=0})
     */
    private $sortOrder;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_default", type="boolean", nullable=true, options={"comment":"是否默认  0 否 1 是"})
     */
    private $is_default;
}
